/*
 * @Author: xiaxia
 * @Description: 
 * @Date: 2024-07-03 17:24:40
 * @LastEditTime: 2024-07-09 15:32:09
 * @FilePath: \project\src\api\acl\user\type.ts
 */
export interface ResponseData {
  code: number,
  message: string,
  ok: boolean,
}

export interface UserInfo {
  id?: number|string,
  createTime?: string,
  updateTime?: string,
  username?: string,
  password?: string,
  name?: string,
  phone?: string,
  roleName?: string
}

export interface UserListResponse extends ResponseData {
  data: {
    records: UserInfo[],
    total: number,
    size: number,
    current: number,
    orders: [],
    optimizeCountSql: boolean,
    hitCount: boolean,
    countId: null,
    maxLimit: null,
    searchCount: boolean,
    pages: number
  }
}

// 用户信息
export interface RoleInfo {
  id?: number|string,
  createTime?: string,
  updateTime?: string,
  roleName?: string,
  remark?: string,
}
export interface RoleListResponse extends ResponseData {
  data: {
    assignRoles: RoleInfo[],
    allRolesList: RoleInfo[],
  }
}
// 角色信息
export interface RoleData  {
  roleIdList: number[],
  userId: number,
}